from selenium import webdriver
from selenium.webdriver.common.by import By
from Base import Base
from selenium.webdriver.common.keys import Keys
import time
class a3m(Base):
    dz=('http://10.59.9.14:7003/home/login.html')
    mm=(By.NAME,'username')
    zh=(By.NAME,'password')
    qd=(By.XPATH,'/html/body/div[4]/div/div[1]/div[2]/form/div[5]/a')
    sr=(By.XPATH,'//*[@id="searchForm"]/div[1]/input')
    dj=(By.XPATH,'//*[@id="searchForm"]/div[2]/input')
    def yx(self):
        self.open_url(self.dz)
        time.sleep(2)
        self.send_keys(self.mm, '15649920329')
        time.sleep(2)
        self.send_keys(self.zh,'1234567')
        time.sleep(10)
        self.click(self.qd)
        time.sleep(2)
        self.send_keys(self.sr,'音乐耳机')
        self.click(self.dj)
        time.sleep(5)
